home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 10768 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1015 b 

  1. Path: sdd.hp.com!usc!usc!not-for-mail
  2. From: haiz@crucis.usc.edu (Hai Zhang)
  3. Newsgroups: comp.lang.c
  4. Subject: Invoke a outside utility from c program in MS-Window environments
  5. Date: 19 Mar 1996 15:15:47 -0800
  6. Organization: University of Southern California, Los Angeles, CA
  7. Sender: haiz@crucis.usc.edu
  8. Distribution: world
  9. Message-ID: <4inf73$lh@crucis.usc.edu>
  10. NNTP-Posting-Host: crucis.usc.edu
  11.  
  12. Hi,
  13.  
  14. I am new to program in MS-Window and have following question:
  15.  
  16. I try to write a c application in MS-Windows environment. In one
  17. procedure I want user input a file name and compress the corresponding
  18. file. I want to use pkzip to do the real job. My question is whether
  19. it is possible to invoke a outside utility such as pkzip in MS-Windows.
  20. In unix I could use system() function or even execl or execv(). 
  21.  
  22. I do not want to buy a separate library package from pkware, since I
  23. will only use small part of the compressing utility.
  24.  
  25.  
  26. Thanks
  27.  
  28. Bing Zhang
  29. Dept. of Mechanical Engineering
  30. University of Southern California
  31.